<?php
/**
 * Audit.php
 *
 * @copyright   2023 thingsworld.com.cn - All Rights Reserved
 * @link        http://thingsworld.com.cn/
 * @author      stiffer.chen <chenl@thingsworld.com.cn>
 * @created     2023-03-07 16:46:11
 * @modified    2023-03-07 16:46:11
 *
 */

namespace App\Models\WorkOrder;

use App\Models\BaseModel;

class Audit extends BaseModel
{
    protected $table = 'work_order_audit';

    protected $fillable = [
        'work_order_id',
        'target',
        'content',
        'create_user_id'
    ];

    public function user()
    {
        return $this->belongsTo(\App\Models\UserModel::class, 'create_user_id');
    }
}